package com.ztesoft.web.baseconfig.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class DmStrategyDataobjRelArg {
    private String pk_name = "DM_STRATEGY_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DmStrategyDataobjRelCriteria> oredCriteria;

    public DmStrategyDataobjRelArg() {
        oredCriteria = new ArrayList<DmStrategyDataobjRelCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DmStrategyDataobjRelCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DmStrategyDataobjRelCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DmStrategyDataobjRelCriteria or() {
    	DmStrategyDataobjRelCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DmStrategyDataobjRelCriteria createCriteria() {
    	DmStrategyDataobjRelCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DmStrategyDataobjRelCriteria createCriteriaInternal() {
    	DmStrategyDataobjRelCriteria criteria = new DmStrategyDataobjRelCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DmStrategyDataobjRelCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DmStrategyDataobjRelCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DmStrategyDataobjRelCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DmStrategyDataobjRelCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DmStrategyDataobjRelCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmStrategyDataobjRelCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmStrategyDataobjRelCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DmStrategyDataobjRelCriterion(condition, value1, value2));
        }

        public DmStrategyDataobjRelCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DmStrategyDataobjRelCriteria) this;
        }
        public DmStrategyDataobjRelCriteria andDmStrategyIdIsNull() {
            addCriterion("DM_STRATEGY_ID is null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdIsNotNull() {
            addCriterion("DM_STRATEGY_ID is not null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID =", value, "DM_STRATEGY_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdNotEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID <>", value, "DM_STRATEGY_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdGreaterThan(Integer value) {
            addCriterion("DM_STRATEGY_ID >", value, "DM_STRATEGY_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID >=", value, "DM_STRATEGY_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdLessThan(Integer value) {
            addCriterion("DM_STRATEGY_ID <", value, "DM_STRATEGY_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdLessThanOrEqualTo(Integer value) {
            addCriterion("DM_STRATEGY_ID <=", value, "DM_STRATEGY_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdLike(Integer value) {
            addCriterion("DM_STRATEGY_ID like ", value, "DM_STRATEGY_ID", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdNotLike(Integer value) {
            addCriterion("DM_STRATEGY_ID  not like ", value, "DM_STRATEGY_ID", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdLeftLike(Integer value) {
            addCriterion("DM_STRATEGY_ID like ", value, "DM_STRATEGY_ID", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdNotLeftLike(Integer value) {
            addCriterion("DM_STRATEGY_ID  not like ", value, "DM_STRATEGY_ID", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdRightLike(Integer value) {
            addCriterion("DM_STRATEGY_ID like ", value, "DM_STRATEGY_ID", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdNotRightLike(Integer value) {
            addCriterion("DM_STRATEGY_ID  not like ", value, "DM_STRATEGY_ID", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdIn(List<Integer> values) {
            addCriterion("DM_STRATEGY_ID  in ", values, "DM_STRATEGY_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdNotIn(List<Integer> values) {
            addCriterion("DM_STRATEGY_ID not in ", values, "DM_STRATEGY_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdBetween(Integer value1, Integer value2) {
            addCriterion("DM_STRATEGY_ID between ", value1, value2, "DM_STRATEGY_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andDmStrategyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DM_STRATEGY_ID not between ", value1, value2, "DM_STRATEGY_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }
        public DmStrategyDataobjRelCriteria andSourceDataIdIsNull() {
            addCriterion("SOURCE_DATA_ID is null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdIsNotNull() {
            addCriterion("SOURCE_DATA_ID is not null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID =", value, "SOURCE_DATA_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdNotEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <>", value, "SOURCE_DATA_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdGreaterThan(Integer value) {
            addCriterion("SOURCE_DATA_ID >", value, "SOURCE_DATA_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID >=", value, "SOURCE_DATA_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdLessThan(Integer value) {
            addCriterion("SOURCE_DATA_ID <", value, "SOURCE_DATA_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdLessThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <=", value, "SOURCE_DATA_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdNotLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdNotLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdNotRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID  in ", values, "SOURCE_DATA_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdNotIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID not in ", values, "SOURCE_DATA_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID between ", value1, value2, "SOURCE_DATA_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andSourceDataIdNotBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID not between ", value1, value2, "SOURCE_DATA_ID");
            return (DmStrategyDataobjRelCriteria) this;
        }
        public DmStrategyDataobjRelCriteria andObjectTypeIsNull() {
            addCriterion("OBJECT_TYPE is null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeIsNotNull() {
            addCriterion("OBJECT_TYPE is not null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeEqualTo(Integer value) {
            addCriterion("OBJECT_TYPE =", value, "OBJECT_TYPE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeNotEqualTo(Integer value) {
            addCriterion("OBJECT_TYPE <>", value, "OBJECT_TYPE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeGreaterThan(Integer value) {
            addCriterion("OBJECT_TYPE >", value, "OBJECT_TYPE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("OBJECT_TYPE >=", value, "OBJECT_TYPE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeLessThan(Integer value) {
            addCriterion("OBJECT_TYPE <", value, "OBJECT_TYPE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeLessThanOrEqualTo(Integer value) {
            addCriterion("OBJECT_TYPE <=", value, "OBJECT_TYPE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeLike(Integer value) {
            addCriterion("OBJECT_TYPE like ", value, "OBJECT_TYPE", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeNotLike(Integer value) {
            addCriterion("OBJECT_TYPE  not like ", value, "OBJECT_TYPE", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeLeftLike(Integer value) {
            addCriterion("OBJECT_TYPE like ", value, "OBJECT_TYPE", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeNotLeftLike(Integer value) {
            addCriterion("OBJECT_TYPE  not like ", value, "OBJECT_TYPE", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeRightLike(Integer value) {
            addCriterion("OBJECT_TYPE like ", value, "OBJECT_TYPE", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeNotRightLike(Integer value) {
            addCriterion("OBJECT_TYPE  not like ", value, "OBJECT_TYPE", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeIn(List<Integer> values) {
            addCriterion("OBJECT_TYPE  in ", values, "OBJECT_TYPE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeNotIn(List<Integer> values) {
            addCriterion("OBJECT_TYPE not in ", values, "OBJECT_TYPE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeBetween(Integer value1, Integer value2) {
            addCriterion("OBJECT_TYPE between ", value1, value2, "OBJECT_TYPE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andObjectTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("OBJECT_TYPE not between ", value1, value2, "OBJECT_TYPE");
            return (DmStrategyDataobjRelCriteria) this;
        }
        public DmStrategyDataobjRelCriteria andMainFlagIsNull() {
            addCriterion("MAIN_FLAG is null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagIsNotNull() {
            addCriterion("MAIN_FLAG is not null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagEqualTo(Integer value) {
            addCriterion("MAIN_FLAG =", value, "MAIN_FLAG");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagNotEqualTo(Integer value) {
            addCriterion("MAIN_FLAG <>", value, "MAIN_FLAG");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagGreaterThan(Integer value) {
            addCriterion("MAIN_FLAG >", value, "MAIN_FLAG");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("MAIN_FLAG >=", value, "MAIN_FLAG");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagLessThan(Integer value) {
            addCriterion("MAIN_FLAG <", value, "MAIN_FLAG");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagLessThanOrEqualTo(Integer value) {
            addCriterion("MAIN_FLAG <=", value, "MAIN_FLAG");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagLike(Integer value) {
            addCriterion("MAIN_FLAG like ", value, "MAIN_FLAG", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagNotLike(Integer value) {
            addCriterion("MAIN_FLAG  not like ", value, "MAIN_FLAG", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagLeftLike(Integer value) {
            addCriterion("MAIN_FLAG like ", value, "MAIN_FLAG", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagNotLeftLike(Integer value) {
            addCriterion("MAIN_FLAG  not like ", value, "MAIN_FLAG", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagRightLike(Integer value) {
            addCriterion("MAIN_FLAG like ", value, "MAIN_FLAG", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagNotRightLike(Integer value) {
            addCriterion("MAIN_FLAG  not like ", value, "MAIN_FLAG", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagIn(List<Integer> values) {
            addCriterion("MAIN_FLAG  in ", values, "MAIN_FLAG");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagNotIn(List<Integer> values) {
            addCriterion("MAIN_FLAG not in ", values, "MAIN_FLAG");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagBetween(Integer value1, Integer value2) {
            addCriterion("MAIN_FLAG between ", value1, value2, "MAIN_FLAG");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andMainFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("MAIN_FLAG not between ", value1, value2, "MAIN_FLAG");
            return (DmStrategyDataobjRelCriteria) this;
        }
        public DmStrategyDataobjRelCriteria andPriorityIsNull() {
            addCriterion("PRIORITY is null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityIsNotNull() {
            addCriterion("PRIORITY is not null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityEqualTo(Integer value) {
            addCriterion("PRIORITY =", value, "PRIORITY");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityNotEqualTo(Integer value) {
            addCriterion("PRIORITY <>", value, "PRIORITY");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityGreaterThan(Integer value) {
            addCriterion("PRIORITY >", value, "PRIORITY");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityGreaterThanOrEqualTo(Integer value) {
            addCriterion("PRIORITY >=", value, "PRIORITY");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityLessThan(Integer value) {
            addCriterion("PRIORITY <", value, "PRIORITY");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityLessThanOrEqualTo(Integer value) {
            addCriterion("PRIORITY <=", value, "PRIORITY");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityLike(Integer value) {
            addCriterion("PRIORITY like ", value, "PRIORITY", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityNotLike(Integer value) {
            addCriterion("PRIORITY  not like ", value, "PRIORITY", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityLeftLike(Integer value) {
            addCriterion("PRIORITY like ", value, "PRIORITY", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityNotLeftLike(Integer value) {
            addCriterion("PRIORITY  not like ", value, "PRIORITY", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityRightLike(Integer value) {
            addCriterion("PRIORITY like ", value, "PRIORITY", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityNotRightLike(Integer value) {
            addCriterion("PRIORITY  not like ", value, "PRIORITY", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityIn(List<Integer> values) {
            addCriterion("PRIORITY  in ", values, "PRIORITY");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityNotIn(List<Integer> values) {
            addCriterion("PRIORITY not in ", values, "PRIORITY");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityBetween(Integer value1, Integer value2) {
            addCriterion("PRIORITY between ", value1, value2, "PRIORITY");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andPriorityNotBetween(Integer value1, Integer value2) {
            addCriterion("PRIORITY not between ", value1, value2, "PRIORITY");
            return (DmStrategyDataobjRelCriteria) this;
        }
        public DmStrategyDataobjRelCriteria andStateIsNull() {
            addCriterion("STATE is null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "STATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "STATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "STATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "STATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "STATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "STATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateLike(String value) {
            addCriterion("STATE like ", value, "STATE", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateNotLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateLeftLike(String value) {
            addCriterion("STATE like ", value, "STATE", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateNotLeftLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateRightLike(String value) {
            addCriterion("STATE like ", value, "STATE", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateNotRightLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateIn(List<String> values) {
            addCriterion("STATE  in ", values, "STATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in ", values, "STATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between ", value1, value2, "STATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between ", value1, value2, "STATE");
            return (DmStrategyDataobjRelCriteria) this;
        }
        public DmStrategyDataobjRelCriteria andStateDateIsNull() {
            addCriterion("STATE_DATE is null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateIsNotNull() {
            addCriterion("STATE_DATE is not null");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateEqualTo(String value) {
            addCriterion("STATE_DATE =", value, "STATE_DATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateNotEqualTo(String value) {
            addCriterion("STATE_DATE <>", value, "STATE_DATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateGreaterThan(String value) {
            addCriterion("STATE_DATE >", value, "STATE_DATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE_DATE >=", value, "STATE_DATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateLessThan(String value) {
            addCriterion("STATE_DATE <", value, "STATE_DATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateLessThanOrEqualTo(String value) {
            addCriterion("STATE_DATE <=", value, "STATE_DATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateNotLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 1);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateLeftLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateNotLeftLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 0);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateRightLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateNotRightLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 2);
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateIn(List<String> values) {
            addCriterion("STATE_DATE  in ", values, "STATE_DATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateNotIn(List<String> values) {
            addCriterion("STATE_DATE not in ", values, "STATE_DATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateBetween(String value1, String value2) {
            addCriterion("STATE_DATE between ", value1, value2, "STATE_DATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

        public DmStrategyDataobjRelCriteria andStateDateNotBetween(String value1, String value2) {
            addCriterion("STATE_DATE not between ", value1, value2, "STATE_DATE");
            return (DmStrategyDataobjRelCriteria) this;
        }

    }

    public static class DmStrategyDataobjRelCriteria extends GeneratedCriteria {

        protected DmStrategyDataobjRelCriteria() {
            super();
        }
    }

    public static class DmStrategyDataobjRelCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DmStrategyDataobjRelCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DmStrategyDataobjRelCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DmStrategyDataobjRelCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DmStrategyDataobjRelCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DmStrategyDataobjRelCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DmStrategyDataobjRelCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}